#ifndef TEX_H
#define TEX_H
#include <QString>
#include <QFile>
#include "lzo.h"


class tex
{
public:    
     tex(QString filename);
     ~tex();

     char *getBmpData();    //正常数据
     char *getBmpDataH();    //上下颠倒数据



     struct Textop
     {
         int nlong;    //原始长度
         int clong;
     }*textop;

     int getWidth();
     int getHeight();

protected:
    bool ftswopen;
    char *texdata;          //tex文件数据
    int width;
    int height;

};


#endif // TEX_H
